import request from '@/utils/request'

// 检查产品号是否存在
export function checkProductNo(params) {
  return request({
    url: '/back/ecnChange/checkProductNo',
    method: 'POST',
    params
  })
}

// 添加ECN表单
export function addEcn(params) {
  return request({
    url: '/back/ecnChange/addEcn',
    method: 'POST',
    params
  })
}

// 查询ECN信息
export function getEcnChangePage(params) {
  return request({
    url: '/back/ecnChange/getEcnChangePage',
    method: 'POST',
    params
  })
}

// 删除ECN信息
export function delEcnChange(params) {
  return request({
    url: '/back/ecnChange/delEcnChange',
    method: 'POST',
    params
  })
}

// 修改ECN信息
export function updateEcnChange(params) {
  return request({
    url: '/back/ecnChange/updateEcnChange',
    method: 'POST',
    params
  })
}

// 手动添加EC凭证
export function ecnChangeFirstAdd(params) {
  return request({
    url: '/back/ecnChangeFirst/add',
    method: 'POST',
    params
  })
}
